Skip to content

chore: release#632

Merged
toiroakr merged 1 commit into
mainfrom
changeset-release/main
Jul 21, 2026
Merged

chore: release#632
toiroakr merged 1 commit into
mainfrom
changeset-release/main

Conversation

@toiroakr-release-bot

@toiroakr-release-bot toiroakr-release-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

politty@0.11.5

Patch Changes

  • 3835069: Add Node.js on-disk compile cache (V8 code cache) support for faster warm starts.

    • runMain now enables the compile cache automatically (Node.js >= 22.8.0; silent no-op otherwise), so dynamically imported modules such as lazy() subcommands skip recompilation. Note this is on by default: CLIs built with politty start writing cache files to ${XDG_CACHE_HOME:-$HOME/.cache}/<command name>/node-compile-cache (the same XDG convention as the shell-completion workers) on end users' machines. NODE_COMPILE_CACHE always takes precedence; opt out or override via the new MainOptions.compileCache option (false | custom directory).
    • New dependency-free politty/compile-cache subpath exporting enableCompileCache, for the bin-shim pattern that caches the whole CLI graph (ESM static imports are compiled before any code runs, so full coverage requires enabling the cache in a minimal shim that loads the real entry with a dynamic import). See "Faster Startup (Compile Cache)" in docs/recipes.md.
    • New politty generate-shim CLI command (and generateCompileCacheShim export) that generates one bin shim per bin entry as part of a postbuild/prepack script. Output paths default to the package's bin paths and program names to the bin names; --entry is repeatable for multi-bin packages (paired in declaration order, or with --out paths of the same count) and can be omitted when a conventional built module (./cli.js, ./index.js, ...) sits next to the shim. Refuses to overwrite files it did not generate, and the generated shim starts the CLI without the cache when politty is not resolvable at runtime (e.g. fully bundled CLIs) instead of failing.
  • 56fdde5: Fix .d.ts generation broken by the TypeScript 7 upgrade. TypeScript 7 (tsgo) has no JS compiler API, so rolldown-plugin-dts's default tsc-based DTS generation crashed the build (and the Release workflow). tsdown now generates declarations with the tsgo binary from @typescript/native-preview; the emitted declarations are equivalent to the previous tsc output.

Code Metrics Report

main (149284c) #632 (33e6ea9) +/-
Coverage 92.1% 92.1% 0.0%
Test Execution Time 16s 17s +1s
Details
  |                     | main (149284c) | #632 (33e6ea9) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          92.1% |          92.1% | 0.0% |
  |   Files             |             75 |             75 |    0 |
  |   Lines             |           7923 |           7923 |    0 |
  |   Covered           |           7304 |           7304 |    0 |
- | Test Execution Time |            16s |            17s |  +1s |

Reported by octocov

@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/politty@2613bc6

commit: 2613bc6

@toiroakr-release-bot
toiroakr-release-bot Bot force-pushed the changeset-release/main branch 9 times, most recently from 11013b9 to e4bbf6f Compare July 20, 2026 04:18
@toiroakr-release-bot
toiroakr-release-bot Bot force-pushed the changeset-release/main branch from e4bbf6f to 2613bc6 Compare July 20, 2026 20:46
@toiroakr
toiroakr merged commit 6856886 into main Jul 21, 2026
12 checks passed
@toiroakr
toiroakr deleted the changeset-release/main branch July 21, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant